www.gusucode.com > Neutrosophic logic toolbox Package_ Neutrosophic Matrices > Neutrosophic logic toolbox Package_ Neutrosophic Matrices/@nm/hamming.m

    function BG=hamming(A,B);
% function st=disp_intui(A);
% maxminmin of two single valued neutrosophic matrix A and B 
% "A" have to be single valued neutrosophic  matrix - "nm" object:
%"B" have to be single valued neutrosophic  matrix - "nm" object:

%In the Name of ALLAH
% neutrosphic logic toolbox for computing single valued neutrosophic Matrices 
% Copyright (C) 2015-2019 Broumi said 
%for for details see the refrence:  
%Said Broumi, Le Hoang Son, Assia Bakali, Mohamed Talea, Florentin Smarandache,
%Ganeshsree Selvachandran, Computing Operational Matrices in Neutrosophic Environments:
%A Matlab Toolbox,Neutrosophic Sets and Systems, 18,2017,pp.58-66.
% neutrosphic logic toolbox for computing single valued neutrosophic Matrice comes 
% This is free software, and you are welcome to redistribut;see license.txt for details.
a.m=abs(A.m-B.m);
a.i=abs(A.i-B.i);
a.n=abs(A.n-B.n);
At=nm(a.m,a.i,a.n);
BG=(a.m+a.i+a.n)./3